<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>档案复核</title>
    <link rel="stylesheet" type="text/css" th:href="@{/lib/layui/css/layui.css}"/>
    <link rel="stylesheet" type="text/css" th:href="@{/css/renshidengji.css}"/>
    <script th:src="@{/lib/layui/layui.js}" charset="utf-8"></script>
    <script th:src="@{/js/jquery-3.6.0.js}" charset="utf-8"></script>
    <script th:src="@{/js/renshifuhe.js}" charset="UTF-8"></script>
</head>
<body onload="renshifuhe()">
<div id="box1">
     <form id="from-fu" method="post" class="layui-form" enctype="multipart/form-data">
        <table border="0" class="layui-table myTable" th:each="v:${pdms}">
            <p style="font-size: 10px;">人事管理>><a href="/renshiwelcome">人事档案管理</a>>>档案复核</p><br>
            <tr>
                <th>档案编码</th>
                <th><input type="text" name="fileCoding" class="layui-input fileCoding" th:value="${v.getFileCoding()}"></th>
                <th>变更类型</th>
                <th colspan="2">
                    <select name="changeTheType"  class="layui-select changeTheType">
                        <option value="">----请选择----</option>
                        <option th:selected="${v.getChangeTheType()=='转正'}" value="转正">转正</option>
                        <option th:selected="${v.getChangeTheType()=='调薪'}" value="调薪">调薪</option>
                        <option th:selected="${v.getChangeTheType()=='续签'}" value="续签">续签</option>
                        <option th:selected="${v.getChangeTheType()=='调岗'}" value="调岗">调岗</option>
                        <option th:selected="${v.getChangeTheType()=='离职'}" value="离职">离职</option>
                        <option th:selected="${v.getChangeTheType()=='其他变更'}" value="其他变更">其他变更</option>
                    </select>
                </th>
                <th rowspan="6">
                    <div style="margin: 0px auto">
                        <img id="imghead"  width="300" height="300"  th:src="${v.getPhonePath()}" style="display: inline-block;"/> <!--图片显示位置-->
                        <input type="file" name="imggggg" id="file" onchange="getPhotoSize(this)" style="display: block;margin-top: 10px;">
<!--                        <img id="imghead"  name="imggg" width="300" height="200" style="display: inline-block;"/> &lt;!&ndash;图片显示位置&ndash;&gt;-->
<!--                        <input type="file" name="imggggg" id="sdsds" onchange="getPhotoSize(this)" style="display: block;margin-top: 10px;" />-->
                    </div>
                    <!-- <img  class="sssss" id="pian1" > -->
                    <!-- <input type="text" value="照片" id="pian1" /> -->
                </th>
            </tr>
            <tr>
                <th>所属部门:</th>
                <th>
                    <input type="text"  class="layui-input" style="display: inline-block;" th:if="${v.getDepartment()}==1" value="总裁办" />
                    <input type="text"  class="layui-input" style="display: inline-block;" th:if="${v.getDepartment()}==2" value="教育产品发展部" />
                    <input type="text"  class="layui-input" style="display: inline-block;" th:if="${v.getDepartment()}==3" value="职业教育研究院" />
                    <input type="text"  class="layui-input" style="display: inline-block;" th:if="${v.getDepartment()}==4" value="区域市场发展一部" />
                    <input type="text"  class="layui-input" style="display: inline-block;" th:if="${v.getDepartment()}==5" value="区域市场发展二部" />
                    <input type="text"  class="layui-input" style="display: inline-block;" th:if="${v.getDepartment()}==6" value="区域市场发展三部" />
                    <input type="text"  class="layui-input" style="display: inline-block;" th:if="${v.getDepartment()}==7" value="产品管理部" />
                    <input type="text"  class="layui-input" style="display: inline-block;" th:if="${v.getDepartment()}==8" value="质量管理部" />
                    <input type="text"  class="layui-input" style="display: inline-block;" th:if="${v.getDepartment()}==9" value="产品设计中心" />
                    <input type="text"  class="layui-input" style="display: inline-block;" th:if="${v.getDepartment()}==10" value="平台研发中心" />
                    <input type="text"  class="layui-input" style="display: inline-block;" th:if="${v.getDepartment()}==11" value="人力资源中心" />
                    <input type="text"  class="layui-input" style="display: inline-block;" th:if="${v.getDepartment()}==12" value="财务部" />
                    <!-- <button type="button" class="layui-btn layui-btn-primary" data-type="test5" style="display: inline-block;">fff</button> -->
                </th>
                <th>档案状态:</th>
                <th colspan="2">
                    <select name="fstatus" class="layui-select fstatus">
                        <option value="">----请选择----</option>
                        <option th:selected="${v.getFstatus()}=='试用期'" value="试用期">试用期</option>
                        <option th:selected="${v.getFstatus()}=='正式员工'" value="正式员工">正式员工</option>
                        <option th:selected="${v.getFstatus()}=='离职'" value="离职">离职</option>
                        <option th:selected="${v.getFstatus()}=='已删除'" value="已删除">已删除</option>
                        <option th:selected="${v.getFstatus()}=='实习员工'" value="实习员工">实习员工</option>
                    </select>
                </th>
            </tr>
            <tr>
                <th>职位名称:</th>
                <th>
                    <input type="text" class="layui-input" th:if="${v.getJobTitle()}==1" value="技术总监"/>
                    <input type="text" class="layui-input" th:if="${v.getJobTitle()}==2" value="财务主管"/>
                    <input type="text" class="layui-input" th:if="${v.getJobTitle()}==3" value="技术培训师"/>
                </th>
                <th>职位编码:</th>
                <th colspan="2">
                    <input type="text" class="layui-input jobTitle" th:if="${v.getJobTitle()}==1" value="BDQN-BMO1"/>
                    <input type="text" class="layui-input jobTitle" th:if="${v.getJobTitle()}==2" value="BDQN-BMO2"/>
                    <input type="text" class="layui-input jobTitle" th:if="${v.getJobTitle()}==3" value="BDQN-BMO3"/>
                </th>
            </tr>
            <tr>
                <th>姓名:</th>
                <th><input type="text" name="name" id="niuc1" class="layui-input name" th:value="${v.getName()}"/></th>
                <th>性别:</th>
                <th colspan="2">
                    <select name="sex" class="layui-select sex">
                        <option value="">----请选择----</option>
                        <option th:selected="${v.getSex()}=='男'" value="男">男</option>
                        <option th:selected="${v.getSex()}=='女'" value="女">女</option>
                    </select>
                </th>
            </tr>
            <tr>
                <th>EMAIL:</th>
                <th><input type="text" name="email" id="niud1" class="layui-input email" th:value="${v.getEmail()}"/></th>
                <th>联系电话:</th>
                <th colspan="2"><input type="text" name="phone" id="niud2" class="layui-input phone" th:value="${v.getPhone()}"/></th>
            </tr>
            <tr>
                <th>住址:</th>
                <th colspan="4"><textarea id="niue" name="address" class="layui-textarea myText address"
                                          th:text="${v.getAddress()}"></textarea></th>
            </tr>
            <tr>
                <th>身份证号:</th>
                <th><input type="text" id="niuf1" name="idNumber" class="layui-input idNumber" th:value="${v.getIdNumber()}"/></th>
                <th>户口所在地:</th>
                <th><input type=" text" id="niuf2" name="registered" class="layui-input registered" th:value="${v.getRegistered()}"/></th>
                <th>政治面貌:</th>
                <th><input type="text" id="niuf3" name="politicsStatus" class="layui-input politicsStatus" th:value="${v.getPoliticsStatus()}"/></th>
            </tr>
            <tr>
                <th>毕业院校:</th>
                <th><input type="text" id="niug1" name="school" class="layui-input school" th:value="${v.getSchool()}"/></th>
                <th>专业:</th>
                <th><input type="text" id="niug2" name="major" class="layui-input major" th:value="${v.getMajor()}"/></th>
                <th>学历:</th>
                <th>
                    <select name="education" id="niug3" class="layui-select education">
                        <option value="0">----请选择----</option>
                        <option th:selected="${v.getEducation()}=='专科'" value="专科">专科</option>
                        <option th:selected="${v.getEducation()}=='本科'" value="本科">本科</option>
                        <option th:selected="${v.getEducation()}=='硕士'" value="硕士">硕士</option>
                        <option th:selected="${v.getEducation()}=='博士'" value="博士">博士</option>
                    </select>
                </th>
            </tr>
            <tr>
                <th>薪酬标准:</th>
                <th>
                    <select name="salaaryStandard" id="niuh1" class="layui-input salaaryStandard">
                        <option value="0">----请选择----</option>
                        <option th:selected="${v.getSalaaryStandard()}=='3'" value="3">高级软件工程师</option>
                        <option th:selected="${v.getSalaaryStandard()}=='2'" value="2">中级软件工程师</option>
                        <option th:selected="${v.getSalaaryStandard()}=='1'" value="1">初级软件工程师</option>
                    </select>
                </th>
                <th>开户行:</th>
                <th><input type="text" id="niuh2" name="openingBank" class="layui-input openingBank" th:value="${v.getOpeningBank()}"/></th>
                <th>银行卡号:</th>
                <th><input type="text" id="niuh3" name="cardNo" class="layui-input cardNo" th:value="${v.getCardNo()}"/></th>
            </tr>
            <tr>
                <th>社保卡号:</th>
                <th><input type="text" id="niuj1" name="social" class="layui-input social" th:value="${v.getSocial()}"/></th>
                <th>登记人:</th>
                <th><input type="text" id="niuj2" name="registrant" class="layui-input registrant" th:value="${v.getRegistrant()}"/></th>
                <th>建档时间:</th>
                <th><input type="date" id="niuj3" name="filecreatedDate" class="layui-input filecreatedDate" th:value="${#dates.format(v.getFilecreatedDate(),'yyyy-MM-dd')}"/></th>
            </tr>
            <tr>
                <th>个人履历:</th>
                <th colspan="5">
                    <textarea name="redumes" class="layui-textarea myText redumes" id="niuk" th:text="${v.getRedumes()}"></textarea>
                </th>
            </tr>
            <tr>
                <th>家庭关系信息:</th>
                <th colspan="5">
                    <textarea name="family" class="layui-textarea myText family" id="niul" th:text="${v.getFamily()}"></textarea>
                </th>
            </tr>
            <tr>
                <th>备注:</th>
                <th colspan="5">
                    <textarea name="notes" class="layui-textarea myText notes" id="nium" th:text="${v.getNotes()}"></textarea>
                </th>
            </tr>
            <tr>
                <th>当前简历附件:</th>
                <th>
                    <input type="text" class="layui-input"  readonly th:value="${v.getResumeName()}"/>
                </th>
                <th>修改简历附件:</th>
                <th>
                    <input type="file" name="file" class="file"/>
                </th>
            </tr>
            <input type="hidden" name="id" class="zhuazhi" th:value="${v.getId()}">
            <input type="hidden" name="jobTitle" class="shazyebushiss" th:value="${v.getJobTitle()}">
            <input type="hidden" name="department" class="suoshubumen" th:value="${v.getDepartment()}">

        </table>
        <div id="anjian" align="center">
            <input type="button" id="shenhetongguoy" value="审核通过" class="layui-btn layui-btn-radius"/>
            <input type="button" id="niup3" value="驳回" class="layui-btn layui-btn-radius bohuii" onclick="renshifuhebohui()"/>
            <a href="/renshiwelcome" id="niup2" class="layui-btn layui-btn-radius">返回</a>
        </div>
    </form>
</div>
<script>
    layui.use('form', function () {
        var form = layui.form; //只有执行了这一步，部分表单元素才会自动修饰成功

        //……

        //但是，如果你的HTML是动态生成的，自动渲染就会失效
        //因此你需要在相应的地方，执行下述方法来手动渲染，跟这类似的还有 element.init();
        // form.render();
    });
</script>
</body>
</html>